<template>
  <div>
    <div>
      <div>
        <div class="buzhou">
          <el-steps
            :active="active"
            finish-status="success"
            style="width: 600px"
          >
            <el-step title="步骤 1"></el-step>
            <el-step title="步骤 2"></el-step>
            <el-step title="步骤 3"></el-step>
          </el-steps>
        </div>
      </div>
      <div>
        <table v-for="(item, i) in list" :key="i" border="1">
          <th>
            <h3>ID</h3>
          </th>
          <th><h3>发起的员工</h3></th>
          <th><h3>类型</h3></th>
          <th><h3>时间</h3></th>
          <th><h3>操作人</h3></th>
          <th><h3>状态(0通过/1待审批/2驳回)</h3></th>
          <tr>
            <td>{{ item.id }}</td>
            <td>{{ item.yuan_id }}</td>
            <td>{{ item.wfi_id }}</td>
            <td>{{ item.date }}</td>
            <td>{{ item.operato }}</td>
            <td>{{ item.nodestate }}</td>
          </tr>
        </table>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "shenpi",
  data() {
    return {
      list: [],
      active:0,
    };
  },
  props: {},

  components: {},

  created() {},

  mounted() {
    this.showapprove();
  },

  methods: {
    showapprove() {
      this.axios
        .get("http://127.0.0.1:8000/proces/v1/showapprove/")
        .then((res) => {
          if (res.data.code == 200) {
            this.list = res.data.data;
          }
          this.active =3
        })
        .catch((err) => {
          console.log(err);
        });
    },
  },

  computed: {},

  watch: {},

  directives: {},

  filters: {},
};
</script>

<style >
* {
  margin: 0;
}
.buzhou{
  padding-left: 10%;
}
</style>
